package com.jsyl.lwbk.business.service.impl;

import com.jsyl.lwbk.business.domain.Question;
import com.jsyl.lwbk.business.dto.education.QuestionListDTO;
import com.jsyl.lwbk.business.mapper.QuestionMapper;
import com.jsyl.lwbk.business.service.IQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jh
 * @date 2020-11-02 16:18
 * @desc
 **/
@Service
public class QuestionServiceImpl implements IQuestionService {

    @Autowired
    private QuestionMapper questionMapper;
    @Override
    public List<Question> findList(QuestionListDTO questionListDTO) {
        return questionMapper.selectList(questionListDTO);
    }

    @Override
    public Question findById(Long id) {
        return questionMapper.selectById(id);
    }

    @Override
    public List<Question> listwithoutreporttype(QuestionListDTO questionListDTO) {
        return questionMapper.listwithoutreporttype(questionListDTO);
    }
}
